package com.nobuyme.box.bean;

/**
 * Created by Yong.
 * E-mail：775811790@qq.com
 * 2017/8/7
 */


public class BoxPollingEntity {


    /**
     *  "描述": "admin_status：管理员登陆状态，0正常1登陆；
     *  lattice_id：0表示当前没有柜子正处于操作中，非0表示有；
     *  当lattice_id不为0时，
     *  lattice_type 类型 0表示租赁  1表示归还",
     "lattice_id": 1,
     *
     * lattice_id : 0
     * lattice_type : 0
     * admin_status : 0
     */
    /**
     * lattice_id : 13
     * lattice_type : 2
     * admin_status : 1
     * goods_id : 3
     * goods : {"id":2,"goods_code":"002","name":"吉他","catid":6,"brand_id":1,"age_range_id":3,"cover":"http://ooftwgdmf.bkt.clouddn.com/acb7749b-0bca-43e4-a40c-cf895a13f016.png","detail":"http://ooftwgdmf.bkt.clouddn.com/a930e464-a836-44f3-be21-4195d8fb34dc.jpg","introduction":"http://ooftwgdmf.bkt.clouddn.com/f2251b0d-edc1-4af6-833b-83604cb387fc.jpg","rent_price":23,"least_rent_days":23,"sale_price":0.02,"deposit":null,"summary":"这个是不错的商品哟","attention":"请在家长的陪同下使用","region":null,"lattice_id":3}
     */

    private int lattice_id;
    private int lattice_type;
    private int admin_status;
    private int goods_id;
    private GoodsEntity goods;

    public void setLattice_id(int lattice_id) {
        this.lattice_id = lattice_id;
    }

    public void setLattice_type(int lattice_type) {
        this.lattice_type = lattice_type;
    }

    public void setAdmin_status(int admin_status) {
        this.admin_status = admin_status;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public void setGoods(GoodsEntity goods) {
        this.goods = goods;
    }

    public int getLattice_id() {
        return lattice_id;
    }

    public int getLattice_type() {
        return lattice_type;
    }

    public int getAdmin_status() {
        return admin_status;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public GoodsEntity getGoods() {
        return goods;
    }

    public static class GoodsEntity {
        /**
         * id : 2
         * goods_code : 002
         * name : 吉他
         * catid : 6
         * brand_id : 1
         * age_range_id : 3
         * cover : http://ooftwgdmf.bkt.clouddn.com/acb7749b-0bca-43e4-a40c-cf895a13f016.png
         * detail : http://ooftwgdmf.bkt.clouddn.com/a930e464-a836-44f3-be21-4195d8fb34dc.jpg
         * introduction : http://ooftwgdmf.bkt.clouddn.com/f2251b0d-edc1-4af6-833b-83604cb387fc.jpg
         * rent_price : 23
         * least_rent_days : 23
         * sale_price : 0.02
         * deposit : null
         * summary : 这个是不错的商品哟
         * attention : 请在家长的陪同下使用
         * region : null
         * lattice_id : 3
         */

        private int id;
        private String goods_code;
        private String name;
        private int catid;
        private int brand_id;
        private int age_range_id;
        private String cover;
        private String detail;
        private String introduction;
        private int rent_price;
        private int least_rent_days;
        private double sale_price;
        private Object deposit;
        private String summary;
        private String attention;
        private Object region;
        private int lattice_id;

        public void setId(int id) {
            this.id = id;
        }

        public void setGoods_code(String goods_code) {
            this.goods_code = goods_code;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setCatid(int catid) {
            this.catid = catid;
        }

        public void setBrand_id(int brand_id) {
            this.brand_id = brand_id;
        }

        public void setAge_range_id(int age_range_id) {
            this.age_range_id = age_range_id;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public void setIntroduction(String introduction) {
            this.introduction = introduction;
        }

        public void setRent_price(int rent_price) {
            this.rent_price = rent_price;
        }

        public void setLeast_rent_days(int least_rent_days) {
            this.least_rent_days = least_rent_days;
        }

        public void setSale_price(double sale_price) {
            this.sale_price = sale_price;
        }

        public void setDeposit(Object deposit) {
            this.deposit = deposit;
        }

        public void setSummary(String summary) {
            this.summary = summary;
        }

        public void setAttention(String attention) {
            this.attention = attention;
        }

        public void setRegion(Object region) {
            this.region = region;
        }

        public void setLattice_id(int lattice_id) {
            this.lattice_id = lattice_id;
        }

        public int getId() {
            return id;
        }

        public String getGoods_code() {
            return goods_code;
        }

        public String getName() {
            return name;
        }

        public int getCatid() {
            return catid;
        }

        public int getBrand_id() {
            return brand_id;
        }

        public int getAge_range_id() {
            return age_range_id;
        }

        public String getCover() {
            return cover;
        }

        public String getDetail() {
            return detail;
        }

        public String getIntroduction() {
            return introduction;
        }

        public int getRent_price() {
            return rent_price;
        }

        public int getLeast_rent_days() {
            return least_rent_days;
        }

        public double getSale_price() {
            return sale_price;
        }

        public Object getDeposit() {
            return deposit;
        }

        public String getSummary() {
            return summary;
        }

        public String getAttention() {
            return attention;
        }

        public Object getRegion() {
            return region;
        }

        public int getLattice_id() {
            return lattice_id;
        }
    }


    @Override
    public String toString() {
        return "BoxPollingEntity{" +
                "lattice_id=" + lattice_id +
                ", lattice_type=" + lattice_type +
                ", admin_status=" + admin_status +
                ", goods_id=" + goods_id +
                ", goods=" + goods +
                '}';
    }
}
